<include file="Public:header" />
<div class="content-box"><!-- Start Content Box -->
    <switch name="ACTION_NAME">
        <case value="edit">
            <div class="content-box-header">
                <h3>回复</h3>
                <div class="clear"></div>
            </div> <!-- End .content-box-header -->
            <div class="content-box-content">

                <form name="newsform" method="post" action="__URL__/reply">
                    <table border="0" cellspacing="1" >
                        <tr>
                            <th>姓名</th>
                            <td><input type="text" name="name" value="{$name}"  /></td>
                        </tr>
                        <tr>
                            <th>留言内容</th>
                            <td><textarea name="content" class="input-textarea">{$content}</textarea></td>
                        </tr>
                        <tr>
                            <th>留言类型</th>
                            <td>

                            </td>
                        </tr>
                        <tr>
                            <th>邮箱</th>
                            <td><input type="text" name="email" value="{$email}"  /></td>
                        </tr>
                        <tr>
                            <th>电话</th>
                            <td><input type="text" name="phone" value="{$phone}"  /></td>
                        </tr>
                        <tr>
                            <th>QQ/MSN</th>
                            <td><input type="text" name="qq" value="{$qq}"  /></td>
                        </tr>
                        <tr>
                            <th>留言时间</th>
                            <td><input type="text" name="postdate" value="{$postdate|date='Y-n-j H:i:s',###}"  /></td>
                        </tr>
                        <tr>
                            <th>IP</th>
                            <td><input type="text" name="clientip" value="{$clientip}"  /></td>
                        </tr>
                        <tr>
                            <th>回复</th>
                            <td><textarea name="reply" class="input-textarea">{$reply}</textarea></td>
                        </tr>
                        <tr>
                            <th>回复时间</th>
                            <td><input type="text" name="replydate" value="<if condition="$replydate eq ''">{$Think.now}<else />{$replydate|date='Y-n-j H:i:s',###}</if>"  /></td>
                        </tr>
                    </table>
                    <div align="center"><input type="submit" value="提交"  /></div>
                </form>
            </div>


        </case>
        <default />


        <div class="content-box-header">

            <h3>{$title}</h3>

            <ul class="content-box-tabs">
                <li><a href="#tab1" class="default-tab">列表</a></li>
            </ul>

            <div class="clear"></div>

        </div> <!-- End .content-box-header -->

        <div class="content-box-content">

            <div class="tab-content default-tab" id="tab1">
                    <script type="text/javascript" src="__ROOT__/Public/Js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <link rel="stylesheet" type="text/css" href="__ROOT__/Public/Js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
                <form name="newsform" method="post" action="__URL__/batch">
                    <table>
                        <thead>
                            <tr>
                                <th><input class="check-all" type="checkbox" /></th>
                                <th>姓名</th>
                                <th>留言类型</th>
                                <th>留言时间</th>
                                <th>回复</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        <volist name="message" id="m">
                            <tr>
                                <td><input name="id[]" type="checkbox" id="id[]" value="{$m.id}"  /></td>
                                <td>{$m.name}</td>
                                <td>
                            <switch name="m.types">
                                <case value="1">建议</case>
                                <case value="2">投诉</case>
                                <case value="3">合作</case>
                                <default />留言
                            </switch>
                            </td>
                            <td>{$m.postdate|date="Y-n-j H:i:s",###}<a class="iframe" href="__URL__/edit/id/{$m.id}">ssss</a></td>
                            <td><if condition="$m.reply neq ''">已回复<else />未回复</if></td>
                            <td><a href="__URL__/edit/id/{$m.id}">查看/回复</a> <a href="__URL__/batch/act/delete/id/{$m.id}">删除</a></td>
                            </tr>
                        </volist>
                        </tbody>

                        <tfoot>
                            <tr>
                                <td colspan="6">
                                    <div class="bulk-actions align-left">
                                        <select name="act">
                                            <option value="option1">请选择...</option>
                                            <option value="delete">删除</option>
                                        </select><input  class="button" type="submit" value="确定"  />

                                    </div>
                        <include file="Public:paging" />
                        <div class="clear"></div>
                        </td>
                        </tr>
                        </tfoot>
                    </table>
                </form>

            </div>


        </div> <!-- End .content-box-content -->
    </switch>
</div> <!-- End .content-box -->
<include file="Public:footer" />
